package com.http;

import java.net.Socket;

public class Worker implements Runnable {

	private Socket socket;

	public Worker(Socket accept) {
		this.socket = accept;
	}

	@Override
	public void run() {
		Request request=new HttpRequest(socket);
		request.init();
		Response response=new HttpResponse(socket);
		response.init();
		ETProcessor processor = new HttpProcessor();
		processor.getDo();
		processor.handle(request, response);
	}

}
